import axios from 'axios'

export default {
    data(data){
        return axios({
            method:"get",
            url: "/article/data?timetamp=" + new Date().getTime(),
            params:data
        })
    },
    totalArticle(data){
        return axios({
            method:"get",
            url: "/article/total?timetamp=" + new Date().getTime(),
            params:{
                a_user_id:data
            }
        })
    },
    addArticle(data){
        return axios({
            method:"post",
            url: "/article/add?timetamp=" + new Date().getTime(),
            data
        })
    },
    editArticle(data){
        return axios({
            method:"post",
            url: "/article/edit?timetamp=" + new Date().getTime(),
            data
        })
    },
    delArticle(data){
        return axios({
            method:"post",
            url: "/article/del?timetamp=" + new Date().getTime(),
            data
        })
    }
}